

#include <iostream>
using namespace std;

long long  f(int n)
{
	if(n==0) return 2;
	else{
		return 2*f(n-1)+4;
	}
} 

int main()
{
	cout<<sizeof(long long)<<endl;
	int n;
	while(cin>>n){
		cout<<f(n)<<endl;
	}
}
